<style>
    .lottos-settings td {
        padding: 0;
        vertical-align: top;
    }

    .lottos-settings tr {
        height: 28px;
    }

    .lottos-settings input {
        border-color: #fff !important;
        height: 28px;
    }

    .lottos-action .layui-btn-group {
        padding-left: 10px;
        width: 100%;
    }

    .lottos-action {
        border-width: 0 !important;
        vertical-align: middle !important;
    }

    .validate-msg-box {
        margin: 0;
    }

    .lottos-settings tr:hover {
        background: #fff !important;
    }
</style>

<div class="layui-form-item" data-field-name="{{ $name }}">
    <label class="layui-form-label" style="width: {{ $width['label'] }}px;">{{ $label }}</label>
    <div class="layui-input-inline" style="width: {{ $width['field'] }}px;">
        <table class="layui-table">
            <colgroup>
                <col width="120">
                <col width="90">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>奖项名</th>
                <th>默认人数</th>
                <th>说明</th>
            </tr>
            </thead>
            <tbody class="lottos-settings">
            @if(empty($value))
                @include('admin_fields.lottos.item', [
                    'index' => 0,
                    'item'  => new stdClass(),
                ])
            @else
                @foreach($value as $index => $item)
                    @include('admin_fields.lottos.item')
                @endforeach
            @endif
            </tbody>
        </table>

        @include('admin.partials.validate_errors')

    </div>
</div>
